﻿@using ApCMS.Common
@{
    AppSetting appSet = new AppSetting();
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>@(appSet.SiteName)</title>
    <meta name="Keywords"content="@(appSet.SeoDescription)" >
    <link href="@Url.Content("~/Areas/Admin/Content/default/css/reset.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/Admin/Content/default/css/zh-cn-system.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/Admin/Content/default/css/style.account-1.1.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/Admin/Content/default/css/personal.record-1.0.css")" rel="stylesheet" type="text/css" />
    <script   type="text/javascript" src="@Url.Content("~/Areas/Admin/Content/default/js/jquery-1.4.2.min.js")"></script>
    <script src="@Url.Content("~/Areas/Admin/Content/default/js/styleswitch.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    @*文本编辑器*@
    <script src="@Url.Content("~/Areas/Admin/Content/xheditor/xheditor-1.1.14-zh-cn.min.js")" type="text/javascript"></script>
    @*文件上传*@
    <link href="@Url.Content("~/Areas/Admin/Content/uploadify/uploadify.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Areas/Admin/Content/uploadify/jquery.uploadify.min.js")" type="text/javascript"></script>
    <style type="text/css">
        .objbody
        {
            overflow: hidden;
        }
        /* Styles for validation helpers
-----------------------------------------------------------*/
        .field-validation-error
        {
            color: #ff0000;
        }
        
        .field-validation-valid
        {
            display: none;
        }
        
        .input-validation-error
        {
            border: 1px solid #ff0000;
            background-color: #ffeeee;
        }
        
        .validation-summary-errors
        {
            font-weight: bold;
            color: #ff0000;
        }
        
        .validation-summary-valid
        {
            display: none;
        }
    </style>
</head>
<body scroll="no" class="objbody">
    <div class="header">
        <div class="logo lf">
            <a href="@Url.Action("Index", "Default")"><span class="invisible">@(appSet.CompanyName)</span></a></div>
        <div class="rt-col">
            <div class="tab_style white cut_line text-r">
                <a href="#">问题反馈</a><span>|</span><a href="#">帮助？</a>
                <ul id="Skin">
                    <li class="s1 styleswitch" rel="styles1"></li>
                    <li class="s2 styleswitch" rel="styles2"></li>
                    <li class="s3 styleswitch" rel="styles3"></li>
                    <li class="s4 styleswitch" rel="styles4"></li>
                </ul>
            </div>
        </div>
        <div class="col-auto">
            <div class="log white cut_line">
                您好！ [@Session["UserName"]]<span>|</span><a href="@Url.Action("LogOn", "Default", new { area = "Admin" })">[退出]</a>&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
            <ul class="nav white" id="top_menu">
                <li id="_M0" class="on top_menu"><a href="@Url.Action("Index", "Default")" hidefocus="true" style="outline: none;">
                    桌面</a></li>
                <li class="top_menu"><a href="@Url.Action("Index", "Users")">用户设置</a> </li>
                <li><a href=" @Url.Action("Index", "Home", new { area = "" })" >转到前台</a></li>
            </ul>
        </div>
    </div>
    <div id="content" style="width: auto;">
        <div class="col-left left_menu">
            <div id="Scroll" style="height: 766px;">
                <div id="leftMain">
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "Channel")" hidefocus="true" style="outline: none;">
                            频道列表</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "ArticleCategory")" hidefocus="true" style="outline: none;">
                            文章分类</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "Article")" hidefocus="true" style="outline: none;">
                            文章列表</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "ProductCategory")"  hidefocus="true" style="outline: none;">
                            产品分类</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "Products")" hidefocus="true" style="outline: none;">
                            产品列表</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "JobCategory")" hidefocus="true" style="outline: none;">
                            职位分类</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "Jobs")" hidefocus="true" style="outline: none;">
                            职位列表</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "AdminLinks")" hidefocus="true" style="outline: none;">
                            友情链接</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "ContactUs")" hidefocus="true" style="outline: none;">
                            联系我们</a></h3>
                    <h3 class="f14">
                        <span class="cu" title="点击操作"></span><a href="@Url.Action("Index", "CompanyProfile")" hidefocus="true" style="outline: none;">
                            公司简介</a></h3>
                </div>
            </div>
            <a href="javascript:;" id="openClose" style="outline: invert none medium; height: 786px;"
                hidefocus="hidefocus" class="open" title="展开与关闭左侧菜单"><span class="hidden">展开</span></a>
        </div>
        <div class="col-auto mr8">
            <div class="crumbs">
                <div class="shortcut cu-span">
                    <a href="#" hidefocus='true' style='outline: none;'><span id="sms_count"></span>@(DateTime.Now)</a>
                </div>
                当前位置：<span id="current_pos">首页>@(ViewBag.Title)</span>
            </div>
            <div class="col-1">
                <div class="content" style="position: relative; overflow: hidden">
                    <div name="right" id="rightMain" frameborder="false" scrolling="auto" style="border: none;
                        height: 747px; margin-bottom: 30px; overflow-y: scroll; overflow-x: hidden;"
                        width="100%" allowtransparency="true">
                        @RenderBody()
                    </div>
                    <div class="fav-nav">
                        <div id="panellist">
                            @(appSet.CopyRight)
                        </div>
                        <div class="fav-help">
                            <div id="status_text">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="scroll">
        <a href="javascript:;" class="per" title="使用鼠标滚轴滚动侧栏" onclick="menuScroll(1);"></a>
        <a href="javascript:;" class="next" title="使用鼠标滚轴滚动侧栏" onclick="menuScroll(2);">
        </a>
    </div>
    <script type="text/javascript">
        if (!Array.prototype.map)
            Array.prototype.map = function (fn, scope) {
                var result = [], ri = 0;
                for (var i = 0, n = this.length; i < n; i++) {
                    if (i in this) {
                        result[ri++] = fn.call(scope, this[i], i, this);
                    }
                }
                return result;
            };

        var getWindowSize = function () {
            return ["Height", "Width"].map(function (name) {
                return window["inner" + name] ||
	document.compatMode === "CSS1Compat" && document.documentElement["client" + name] || document.body["client" + name]
            });
        }
        window.onload = function () {
            if (! +"\v1" && !document.querySelector) { // for IE6 IE7
                document.body.onresize = resize;
            } else {
                window.onresize = resize;
            }
            function resize() {
                wSize();
                return false;
            }
        }
        function wSize() {
            //这是一字符串
            var str = getWindowSize();
            var strs = new Array(); //定义一数组
            strs = str.toString().split(","); //字符分割
            var heights = strs[0] - 150, Body = $('body'); $('#rightMain').height(heights);
            //iframe.height = strs[0]-46;
            if (strs[1] < 980) {
                $('.header').css('width', 980 + 'px');
                $('#content').css('width', 980 + 'px');
                Body.attr('scroll', '');
                Body.removeClass('objbody');
            } else {
                $('.header').css('width', 'auto');
                $('#content').css('width', 'auto');
                Body.attr('scroll', 'no');
                Body.addClass('objbody');
            }

            var openClose = $("#rightMain").height() + 39;
            $('#center_frame').height(openClose + 9);
            $("#openClose").height(openClose + 30);
            $("#Scroll").height(openClose - 20);
            windowW();
        }
        wSize();
        function windowW() {
            if ($('#Scroll').height() < $("#leftMain").height()) {
                $(".scroll").show();
            } else {
                $(".scroll").hide();
            }
        }
        windowW();

        //隐藏站点下拉。
        var s = 0;
        var h;
        function hidden_site_list() {
            s++;
            if (s >= 3) {
                $('.tab-web-panel').hide();
                clearInterval(h);
                s = 0;
            }
        }
        function clearh() {
            if (h) clearInterval(h);
        }
        function hidden_site_list_1() {
            h = setInterval("hidden_site_list()", 1);
        }

        //左侧开关
        $("#openClose").click(function () {
            if ($(this).data('clicknum') == 1) {
                $("html").removeClass("on");
                $(".left_menu").removeClass("left_menu_on");
                $(this).removeClass("close");
                $(this).data('clicknum', 0);
                $(".scroll").show();
            } else {
                $(".left_menu").addClass("left_menu_on");
                $(this).addClass("close");
                $("html").addClass("on");
                $(this).data('clicknum', 1);
                $(".scroll").hide();
            }
            return false;
        });

        function menuScroll(num) {
            var Scroll = document.getElementById('Scroll');
            if (num == 1) {
                Scroll.scrollTop = Scroll.scrollTop - 60;
            } else {
                Scroll.scrollTop = Scroll.scrollTop + 60;
            }
        }
    </script>
    <div id="sms_sound">
    </div>
</body>
</html>
